/*
* -------------------------------------------------------
* Copyright (c) 2015, 天士力
* All rights reserved.
* 
* FileName：IdCard.java
* Description：简要描述本文件的内容
* History：
* Date           Author               Desc
* 2017/3/1      ChengZhenxing        Desc
* -------------------------------------------------------
*/
package com.elegant.code.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Created by ChengZhenxing on 2017/3/1.
 */
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy = IdCardValidator.class)
public @interface IdCard {

    String message() default "Must be Id Card Number";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
